<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { getUserJQ } from "../api/api";
const tableData = ref()
onMounted(()=>{
    userFB()
})
//获取数据
const userFB = async() => {
    const res = await getUserJQ()  
    tableData.value = res.data.data
}
</script>

<template>
    <el-scrollbar>
        <el-table :data="tableData">
            <el-table-column prop="_id" label="id" width="300" />
            <el-table-column prop="orderId" label="单子标题" width="300" />
            <el-table-column prop="mailId" label="用户邮箱" width="300" />
            <el-table-column prop="name" label="用户名字" />
        </el-table>
    </el-scrollbar>
</template>

<style scoped>
</style>